package homeworks.cjt2010.homework1;

/**
 * /** Represents a model of<code>an airport</code>.
 * <p>
 * This class has to attributes: name and timeZone of the airport.
 * <p>
 * The class is an enumeration type and declares several constants from this
 * type.
 * <p>
 * This class has a share in {@link Flight Flight class}
 * 
 * @author Tsvetan Vasilev
 * 
 */
public enum Airport {
	SOF("Sofia, Terminal 1", "GMT+2"), DTM("Dortmund", "GMT+1"), EIN(
			"Eindhoven", "GMT+1"), LTN("London Luton", "GMT"), BGY(
			"Milan Bergamo", "GMT+1"), VAR("Varna", "GMT+2"), MSK("Moscow",
			"GMT+3"), NY("New York", "GMT-5");

	private String name;
	private String timeZone;

	private Airport(String name, String timeZone) {
		this.name = name;
		this.timeZone = timeZone;
	}

	public String getName() {
		return name;
	}

	public String getTimeZone() {
		return timeZone;
	}

}
